const db = require('mongoose');
// db.connect('mongodb+srv://2731237399:lzh123456.@cluster0.6fo1gog.mongodb.net/zt10_project?retryWrites=true&w=majority&appName=Cluster0')
db.connect('mongodb://127.0.0.1:27017/quessionBank')
.then(() => console.log('数据库连接成功')).catch(
    () => console.log('数据库连接失败')
)
module.exports = db;